package cn.jtfadmin.base.lang.config.statuscode;


import cn.jtfadmin.base.lang.common.domain.dto.ResultDTO;
import cn.jtfadmin.base.lang.common.utils.RequestUtils;
import cn.jtfadmin.base.lang.config.ApplicationHolder;
import cn.jtfadmin.base.lang.config.WebConfig;
import org.springframework.beans.factory.BeanInitializationException;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.support.RequestContextUtils;

import javax.servlet.http.HttpServletRequest;
import java.util.*;

/**
 * 公共-状态码查询
 *
 * @author jtf
 * @see StatusCodeManager
 * @since 0.0.1
 */
@RestController
public class StatusCodeController  {


    @Autowired
   private StatusCodeManager statusCodeManager;

    /**
     * 获取所有的状体码配置
     *
     * @return 获取所有的状体码配置
     */
    @GetMapping(value = "/baseLang/statusCode/list")
    public ResultDTO<List<StatusDescribe>> getAllNativeStatusDescribe() {
        return ResultDTO.successData(statusCodeManager.getAllNativeStatusDescribe());
    }

}
